﻿#include "OrthoCamera.h"

OrthoCamera::OrthoCamera(float L, float R, float B, float T, float N, float F):
	mLeft(L),mRight(R),mBottom(B),mTop(T),mNear(N),mFar(F)
{
}

OrthoCamera::~OrthoCamera()
{
}

glm::mat4 OrthoCamera::getProjectMatrix()
{
	float scale = std::pow(2.0, mScale);
	return glm::ortho(mLeft*scale,mRight * scale,mBottom * scale,mRight * scale,mNear,mFar);
}

void OrthoCamera::scale(float deltaScale)
{
	mScale += deltaScale;
}
